<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${packageName}.mapper.${mapperName}">

    <resultMap id="BaseResultMap" type="${packageName}.domain.${domainName}">
        <#list columns as column>
            <<#if column.isPrimary??>id<#else>result</#if> column="${column.columnName}" property="${column.propertyName?uncap_first}" />
        </#list>
    </resultMap>

    <select id="getAll${domainName}s" resultMap="BaseResultMap">
        select * from ${tableName};
    </select>
</mapper>
